home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 39 lines | [TEXT/GEOL] |
- Item 1086463 10-Nov-88 08:36
-
- From: SCHMUCKER1 Schmucker, Kurt
-
- To: D1157 All Star Computer, Dev, L Goldman
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: Response to Jumping Over
-
- Larry,
-
- In the world of object-oriented languages, the ability to do something like
- .
- .
- INHERITED INHERITED DoSetupMenus(…);
- .
- .
-
- is quite rare. I do not believe that Object Pascal provides language support
- for this, nor does Smalltalk or Objective-C. C++ does, but the "price" you pay
- for this capability is very high: in C++, you must explictly code all such
- calls to a particular superclass. Thus, you cannot (in C++) say, "Call my
- ancestor's version of the FooBar method", rather you must hard code "Call the
- FooBar method of class Frob." This makes replicating the elegant Smalltalk
- collection classes in C++ either very hard or very ugly (some say both, but
- that is a different discussion.)
-
- If I recall correctly, Apple's first object-oriented extension of Pascal,
- Clascal, did have the feature you have asked for. It was not included in
- Object Pascal because it was considered a violation of the OOP spirit.
-
-
-
- Kurt
-
-
-
-